/**
 * 
 */
package org.apache.hadoop.io;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

/**
 * The basic functionality to indicate serialization
 * This differs from the Hadoop signature because it takes simple Java streams,
 * but the purpose of mapreduce4j is 
 * @author tim
 * @param <T>
 */
public interface WritableComparable<T> extends Writable, Comparable<T> {
	void write(DataOutputStream out) throws IOException;
	void readFields(DataInputStream in) throws IOException;
}
